package day011.JDBCDaoSupport;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class DeptTest {
	public static void main(String[] args) {
		ApplicationContext context = new FileSystemXmlApplicationContext("/src/day011/JDBCDaoSupport/day011.xml");
		DeptDao dao = (DeptDao)context.getBean("deptDao");
		
		DeptVo vo = dao.getDept(20);
		
		List<DeptVo> deptList = dao.getDeptList();
		
		System.out.println("deptList : " + deptList);
	}
}
